import { TableColumnObject } from 'amis/lib/renderers/Table'
import baseEnumColumnUtils from '@/components/amis/common/BaseEnumColumnUtils/baseEnumColumnUtils'
import IamAccountProfileSexEnum from '@/core/account/generated/enums/IamAccountProfileSexEnum'

class IamAccountProfileSexColumnUtils {
	getSchema = (parmas?: Partial<TableColumnObject>): TableColumnObject => {
		const mergeSchema = Object.assign(
			{
				name: 'sex',
				label: '性别',
				baseEnum: IamAccountProfileSexEnum,
			},
			parmas,
		)
		return baseEnumColumnUtils.getSchema(mergeSchema)
	}
}

export default new IamAccountProfileSexColumnUtils()
